package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 酒店基础信息表
 * </p>
 *
 * @author 
 * @since 2023-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_base_info")
public class HotelBaseInfo extends Model<HotelBaseInfo> {

    private static final long serialVersionUID=1L;

    /**
     * 酒店ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 酒店名称
     */
    private String hotelName;

    /**
     * 酒店地址
     */
    private String hotelAddress;

    /**
     * 开业时间
     */
    private Date openTime;

    /**
     * 酒店介绍
     */
    private String hotelIntroduce;

    /**
     * 酒店电话
     */
    private String hotelPhone;

    /**
     * 国家
     */
    private String country;

    /**
     * 省
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 头图url
     */
    private String headerPic;

    /**
     * 酒店评分
     */
    private Double hotelScore;

    /**
     * 纬度
     */
    private BigDecimal latitude;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;

    /**
     * 酒店状态, 1=正常
     */
    private Integer hotelStatus;


    public static final String ID = "id";

    public static final String HOTEL_NAME = "hotel_name";

    public static final String HOTEL_ADDRESS = "hotel_address";

    public static final String OPEN_TIME = "open_time";

    public static final String HOTEL_INTRODUCE = "hotel_introduce";

    public static final String HOTEL_PHONE = "hotel_phone";

    public static final String COUNTRY = "country";

    public static final String PROVINCE = "province";

    public static final String CITY = "city";

    public static final String DISTRICT = "district";

    public static final String HEADER_PIC = "header_pic";

    public static final String HOTEL_SCORE = "hotel_score";

    public static final String LATITUDE = "latitude";

    public static final String LONGITUDE = "longitude";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    public static final String HOTEL_STATUS = "hotel_status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
